package co.sanduche.teach.gallery;

import java.io.Serializable;

/**
 * 
 */
public class ImageItem implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String title;

	private Long id;
	private String path;
	private String url;
	private Long serverId;
	private String message;
	private int posted;
	private long state;

	public ImageItem(String title) {
		super();

		this.title = title;
	}

	public ImageItem(Long id, String path, String url, Long serverId,
			String message, int posted, int state) {
		this.id = id;
		this.path = path;
		this.url = url;
		this.serverId = serverId;
		this.message = message;
		this.posted = posted;
		this.setState(state);
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Long getServerId() {
		return serverId;
	}

	public void setServerId(Long serverId) {
		this.serverId = serverId;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getPosted() {
		return posted;
	}

	public void setPosted(int posted) {
		this.posted = posted;
	}

	public long getState() {
		return state;
	}

	public void setState(long state) {
		this.state = state;
	}

	@Override
	public String toString() {
		return "Imagen " + id + " desc:" + message;
	}
}